package sy.services.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import sy.db.mysql.dao.JKGLDao;
import sy.db.mysql.model.JKGL;
import sy.pageModel.DataGrid;
import sy.pageModel.Tree;
import sy.services.JKGLServiceI;


@Service("jKGLService")
public class  JKGLServiceImpl implements  JKGLServiceI {
	
	@Autowired
	 JKGLDao  jKGLDao;
	@Override
	public int deleteByPrimaryKey(String id) {
		return this.jKGLDao.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(JKGL record) {
		return this.jKGLDao.insertSelective(record);
	}

	@Override
	public JKGL selectByPrimaryKey(String id) {
		return this.jKGLDao.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(JKGL record) {
		return this.jKGLDao.updateByPrimaryKeySelective(record);
	}

	@Override
	public DataGrid findbyByGrid(Map map) {
		DataGrid dataGrid = new DataGrid();
		map.put("dataGrid", dataGrid);
		List<JKGL> retList = this.jKGLDao.findbyByGrid(map);
		dataGrid.setRows(retList);
		return dataGrid;
	}
	@Override
	public List<JKGL> qxfpselect() {
		return this.jKGLDao.qxfpselect();
	}

}
